package com.example.administrator.managesystem.presenter.login;
import android.content.Context;

import com.example.administrator.managesystem.ui.LogoView;

/**
 * Created by TR-AND2 on 2018/1/15.
 */


public class LogoPresenter {
    private LogoView logoView;

    public LogoPresenter(LogoView logoView) {
        this.logoView = logoView;
    }

    public void leadRequest(final Context context){

//        Map<String, String> params = ServiceManager.getInstance(context).getUrlParams();
//        ServiceManager.getInstance(context).getService(GuideAPI.class).initAPP(params)
//                .subscribeOn(Schedulers.io())//IO线程加载数据
//                .observeOn(AndroidSchedulers.mainThread())//主线程显示数据
//                .subscribe(new Subscriber<LogoResult>() {
//                    @Override
//                    public void onCompleted() {
//
//                    }
//
//                    @Override
//                    public void onError(Throwable t) {
//
//                    }
//
//                    @Override
//                    public void onNext(LogoResult logoResult) {
//                       logoView.showLead(logoResult.getContent().getStart());
//                        logoView.update(logoResult.getContent().getUpdate());
//                    }
//
//
//                });
    }
}
